package com.parking.mgr.common.dbs;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @ClassName BaseMapper
 * @Description 基础Mapper
 * @Auther: zhijianpu
 * @Date: 2023/5/18
 */
public interface BaseMapper<Entity> extends com.baomidou.mybatisplus.core.mapper.BaseMapper<Entity> {

    List<Entity> selectLogicDelete(@Param("ew") QueryWrapper wrapper);

    int revertLogicDeleted(@Param("ids") Collection<? extends Serializable> ids);

    int physicsDelete(@Param("ew") QueryWrapper<Entity> queryWrapper);
    int physicsDelete(@Param("ew") LambdaQueryWrapper<Entity> queryWrapper);

    Integer insertBatchSomeColumn(@Param("list") Collection<Entity> entityList);

    List<Entity> selectAllColumn(@Param("ew") LambdaQueryWrapper wrapper);

}
